#!/bin/sh

GRIDGAIN_HOME="/home/kache/gridgain-2.1.1"
JAVA_HOME="/usr/lib/jvm/java-6-sun/jre"

export LIB_PATH="../lib"
export CLASSPATH=../migridgain.jar
export CLASSPATH=$CLASSPATH:$LIB_PATH/trove-1.0.2.jar
export CLASSPATH=$CLASSPATH:$LIB_PATH/gridgain-2.1.1.jar
export CLASSPATH=$CLASSPATH:$LIB_PATH/jboss-serialization-1.0.3.GA.jar
export CLASSPATH=$CLASSPATH:$LIB_PATH/javassist-3.6.jar
export CLASSPATH=$CLASSPATH:$LIB_PATH/jtidy-4aug2000r7-dev.jar
export CLASSPATH=$CLASSPATH:$LIB_PATH/spring-2.5.6.jar
export CLASSPATH=$CLASSPATH:$LIB_PATH/sigar.jarlucene-core-2009-04-17_02-04-56.jar
export CLASSPATH=$CLASSPATH:$LIB_PATH/log4j-1.2.13.jar
export CLASSPATH=$CLASSPATH:$LIB_PATH/commons-logging.jar

JVM_OPTS="-ea -XX:MaxPermSize=256m -XX:+UseParNewGC -XX:MaxNewSize=64m -XX:NewSize=64m -Xms512m -Xmx512m -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0  -XX:+UseTLAB -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled"

java ${JVM_OPTS} -DGRIDGAIN_HOME="${GRIDGAIN_HOME}" setCoveringProblem.gridgain.GridifyCoverTaskRun $1
